﻿using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Controls;

namespace 软件运行平台.ViewModel
{
    public class MenuViewModel
    {
        public class MenuItem
        {
            public MenuItem(string header, List<SubItem> subItems, PackIconKind icon, bool isExpand = false)
            {
                IsExpand = isExpand;
                Header = header;
                SubItems = subItems;
                Icon = icon;
            }
            public bool IsExpand { get; set; }
            public string Header { get; private set; }
            public PackIconKind Icon { get; private set; }
            public List<SubItem> SubItems { get; private set; }
        }
        public class SubItem
        {
            public SubItem(string name, UserControl screen = null)
            {
                Name = name;
                Screen = screen;
            }
            public string Name { get; private set; }
            public UserControl Screen { get; private set; }
        }
    }
}
